﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BUS;
using DAO;
using SiteUtils;
namespace FDeal.WUC
{
    public partial class WUCDoanhNgiep : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                LoadDanhSachDoanhNghiep();
            }
        }
        public void LoadDanhSachDoanhNghiep()
        {
            TaiKhoanDoanhNghiepBUS taiKhoangDoanhNgiepBUS = new TaiKhoanDoanhNghiepBUS();
            dtldanhsachdoanhnghiep.DataSource = taiKhoangDoanhNgiepBUS.LietKe();
            dtldanhsachdoanhnghiep.DataBind();
            CollectionPager1.PageSize = 3;
            CollectionPager1.DataSource = taiKhoangDoanhNgiepBUS.LietKe();
            CollectionPager1.BindToControl = dtldanhsachdoanhnghiep;
            dtldanhsachdoanhnghiep.DataSource = CollectionPager1.DataSourcePaged;
        }
    }
}